package edu.sctu.practice.class01.fengleilin.test13;

/**
 * Created by fll on 2015/10/14.
 */
public class NumberTest {

    public int num1;
    public int num2;
    public double a;
    public double b;
    public double c;
    public String text1;
    public String text2;

    public NumberTest(int num1, int num2) {
        this.num1 = num1;
        this.num2 = num2;
    }

    public void compareNumber() {
        if (num1 > num2) {
            System.out.println("在" + num1 + "和" + num2 + "之间，" + num1 + "是最大的数字");
        } else if (num1 < num2) {
            System.out.println("在" + num1 + "和" + num2 + "之间，" + num2 + "是最大的数字");
        } else {
            System.out.println("您输入的两个数字相等，请重新输入");
        }
    }

    public NumberTest(double a, double b, double c) {
        this.a = a;
        this.b = b;
        this.c = c;
    }

    public void mulNumber() {
        double d = a * b * c;
        System.out.println(a +"、"+ b + "、" + c + "这三个数的乘积是：" + d);
    }

    public NumberTest(String text1, String text2) {
        this.text1 = text1;
        this.text2 = text2;
    }

    public void IsSameNumber() {
        if (text1 == text2) {
            System.out.println("您输入的值是:" + text1 + "和" + text2 +"，它们是相等的");
        } else {
            System.out.println("您输入的值是不相等的");
        }
    }
}
